import Config from '@/config';
import Http from '@/utils/httpRequest';

const { xcxApis } = Config;

// 类型查询
export const getElementTree = (body) => {
    return Http.request(`${xcxApis}/system/common/getElementTree`, body, 'post');
}

// 录制视频
export const appRecordVideo = (body) => {
    return Http.request(`${xcxApis}/system/common/appRecordVideo`, body, 'post');
}

// 上传服务器
export const uploadVideo = (body) => {
    body['offShow'] = true;
    return Http.request(`${xcxApis}/system/common/uploadVideo`, body, 'post');
}
